package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dao.MenuDAO;
import com.entity.Menu;

@Transactional
@Service
public class MenuService {
	@Autowired
	private MenuDAO menuDAO;
	public List<Menu> findByParent(int id){
		return this.menuDAO.findByParent(id);
	}
}
